﻿@model Wicresoft.EKA.ITSM.Web.WebPortal.Models.LoginModel

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>登录到SMG巡检控制中心</title>
    <link href="~/content/css/login.ltr.css" rel="stylesheet" type="text/css" />
    @*    <script src="~/Scripts/aad.login.js"></script>*@
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
</head>

<body>
    <div id="background_branding_container" class="ie_legacy" style="background: rgb(58, 160, 204);">
        <img id="background_background_image" alt=" Cloud Lifecycle Management 的插图" src="~/content/images/azuremanage_orgId_zh.png" style="width: auto; height: auto; visibility: visible; background-color: rgb(58, 160, 204); background-attachment: fixed; background-position: bottom;">
    </div>

    <div class="login_panel" id="login_panel" style="display: block;">
        <table class="login_panel_layout" style="height: 100%;">
            <tbody>
                <tr class="login_panel_layout_row" style="height: 100%;">
                    <td id="login_panel_left"></td>
                    <td id="login_panel_center">
                        <div class="login_inner_container">
                            @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
                            {
                                @Html.AntiForgeryToken()
                                @Html.ValidationSummary(true)
                                <ul class="login_cred_container">
                                    <li class="login_cred_field_container">
                                        <div id="cred_userid_container" class="login_textfield">
                                            <span class="input_field">
                                                <img src="~/content/images/AD_glyph.png" />
                                                @Html.LabelFor(m => m.UserName)
                                                <div class="input_border">
                                                    <input id="UserName" name="UserName" class="login_textfield textfield required email field normaltext" type="text" value="">
                                                    @Html.ValidationMessageFor(m => m.UserName)
                                                </div>
                                            </span>
                                        </div>
                                        <div id="cred_password_container" class="login_textfield">
                                            <span class="input_field">
                                                <img src="~/content/images/AD_PASS.png" />
                                                @Html.LabelFor(m => m.Password)
                                                <div class="input_border">
                                                    <input id="Password" name="Password" class="login_textfield textfield required field normaltext" type="password">
                                                    @Html.ValidationMessageFor(m => m.Password)
                                                </div>
                                            </span>
                                        </div>


                                    </li>
                                    <li class="login_cred_options_container">
                                        <input type="submit" class="button normaltext cred_sign_in_button refresh_domain_state disabled_button" value="登录" />
                                    </li>
                                </ul>
                            }
                        </div>
                    </td>
                    <td id="login_panel_right"></td>
                </tr>
            </tbody>
        </table>
    </div>
</body>


<script type="text/javascript">
    $(document).ready(function () {
        screenWidth();
        $("#UserName").focus();
    });

    function screenWidth() {
        var Cwidth = document.body.clientWidth;
        var Lwidth_img = Cwidth - "471";
        Lheight_img = parseInt(Lwidth_img / 1.3);
        if (Lwidth_img < 784) {
            Lwidth_img = "784";
            Lheight_img = "603";
        }
        document.getElementById("background_background_image").style.cssText = " height: " + Lheight_img + "px; width: " + Lwidth_img + "px;"
    }
</script>
